package com.demo.task.service

import android.content.Intent
import android.os.Binder
import android.os.IBinder
import androidx.lifecycle.LifecycleService

abstract class BaseService : LifecycleService() {
    inner class BaseBinder : Binder() {
        fun getService(): BaseService = this@BaseService
    }

    override fun onBind(intent: Intent): IBinder {
        super.onBind(intent)
        return BaseBinder()
    }
}